package learn.spring.gateway.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import java.util.List;
import learn.spring.gateway.entity.RolePerm;
import learn.spring.gateway.entity.RolePermDto;
import learn.spring.gateway.mapper.RolePermMapper;
import learn.spring.gateway.service.IRolePermService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author chins
 * @since 2021-12-18
 */
@Service
public class RolePermServiceImpl extends ServiceImpl<RolePermMapper, RolePerm> implements IRolePermService {

  @Autowired
  private RolePermMapper rolePermMapper;

  @Override
  public List<RolePermDto> listRolePerms() {
    return rolePermMapper.selectAllRolePerms();
  }
}
